﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<%@ Import Namespace="Net.Ntalent.Action50.Core.Util"%>
<%@ Import Namespace="Net.Ntalent.Action50.DataAccess"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta http-equiv=Pragma content=no-cache />
<meta http-equiv=expires content=0 />
<meta http-equiv="cache-control" content="no-store" /> 
<title>Home</title>
<link type="text/css" rel="stylesheet" href="css/common.css" />
<link type="text/css" rel="stylesheet" href="css/home.css" />
<script type="text/javascript" src="js/equalColumns.js"></script>


<!--下拉框所用文件S-->
<script type="text/javascript" src="js/navList.js"></script>
<!--下拉框所用文件E-->
<!-- 弹出框所用头文件 S-->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script language="javascript">
    function clearPopupCmd() {
        var cmd = document.getElementById("<%=popupCmd.ClientID%>");
        cmd.innerHTML = ' ';
        var a = cmd.innerHTML;
    }

</script>


<!--[if IE 6]>
<style type="text/css">
* html,* html body /* 修正IE6振动bug */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 头部固定 */{position:absolute;margin-top:100px;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
</style>
<![endif]-->



<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, li, input');
</script>
<![endif]-->
<!-- 弹出框所用头文件 E-->


</head>
<body onload="equalColumns('Div1','contentWrapper','Div3');startList();" >
<form runat="server">
<div class="wrappera">
	<div class="wrapperb">
		<!-- 界面头部 S -->
		<div id="head" class="head">
			<!-- 界面头部 网站LOGO S -->
			<div id="site_logo">
			</div>
			<!-- 界面头部 网站LOGO E -->
			<!-- 界面头部 网站导航栏 S -->
			<div class="site_nav">
				<ul id="nav">
					<li class="nowPaged"><a href="Default.aspx">HOME</a></li>
					<li><a href="#">ABOUT US</a></li>
					<li><a href="action_List.aspx">ACTIONS</a></li>
                    <li class="right" id="Li_Login" runat="server"><a href="admin_Login.aspx">LOGIN</a></li>

					<li class="right" id="Li_Admin" runat="server"><a href="admin_Action_List.aspx">ADMIN</a>
					    <ul>
					        <li>
                                <asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">LOGOUT</asp:LinkButton></li>
					    </ul>
					</li>

					<li class="right"><a href="#">CONTACT US</a></li>
					<li class="right"><a href="#">PARTNERS</a></li>
                  
				</ul>
			</div>
			<!-- 界面头部 网站导航栏 E -->
		</div>
		<!-- 界面头部 E -->
		
		<!-- 界面主体部分 S -->
		<div class="mainBody">
			<!-- 界面头部 进度条 S -->
			<div class="guage">
				<span id="guageStart">0</span>
				<div id="guageNow"  class="guageNow" runat="server">
					<!-- 界面头部 进度条 滤镜实现透明 S -->
                <asp:Repeater ID="Repeater_guageNow" runat="server">
                    <ItemTemplate>
                    <div class="<%#(string)Container.DataItem %>">
                    </div>
                    </ItemTemplate> 
                </asp:Repeater>

                    <div class="guageFoot_02 last">
				      <div id="TotalEffectPeopleCount" runat="server" class="guageSign"></div>
                      
					<!-- guageSign 放在最后一个 脚图案的div中 S -->
					</div>					
					<!-- 界面头部 进度条 滤镜实现透明 E -->
				</div>
				<span id="guageEnd">1,000,000</span>
			</div>
			<!-- 界面头部 进度条 E -->
			


            <!-- 界面主体 投票栏 S -->
            <div id="Div1" class="columnLeft">


                <asp:Repeater ID="Repeater_columnVotes" runat="server" 
                    onitemcommand="Repeater_columnVotes_ItemCommand" 
                    onitemdatabound="Repeater_columnVotes_ItemDataBound">
                    <HeaderTemplate>
                                         <!-- 界面主体 投票栏头部 S -->
                        <div id="votesHead"><span class="columnTitle">VOTES</span>
                        </div>
                        <!-- 界面主体 投票栏头部 E -->	       
                    </HeaderTemplate> 
            
                    <ItemTemplate>
                    <!-- 界面主体 投票栏列表 S -->
<div class="votesMod">
             <div class="voteModeTop voteModeTop<%#Helper.getTheOrderName3((T_ACTIONS)Container.DataItem) %>"></div>
             <div class="voteModeMiddle voteModeMiddle<%#Helper.getTheOrderName3((T_ACTIONS)Container.DataItem) %>">
                    <asp:Panel ID="Panel_imageRank" runat="server"></asp:Panel>
                      <img id="votePhoto"  class="votePhoto" src="Handlers/GallaryHandler.ashx?action=getLogo&actionId=<%#((T_ACTIONS)Container.DataItem).Id%>"  alt="" />
                      
                        <a class="ActionName" href="action_Team.aspx?actionId=<%#((T_ACTIONS)Container.DataItem).Id%>"><%#((T_ACTIONS)Container.DataItem).ACTION_NAME%></a>                      
                        <asp:LinkButton  class="logoVote linkD" ID="Vote" CommandName="Vote" 
                             CommandArgument="<%#((T_ACTIONS)Container.DataItem).Id %>" runat="server">Vote
                        </asp:LinkButton>
                    </div>
              <div class="voteModeBottom voteModeBottom<%#Helper.getTheOrderName3((T_ACTIONS)Container.DataItem) %>"></div>
</div>
                    <!-- 界面主体 投票栏列表 E -->
                    </ItemTemplate> 
 
                    <FooterTemplate>                  
                        <!-- 界面主体 投票栏尾部 S -->
                        <div id="votesFooter">                   
	                        <span >
                                <asp:LinkButton class="linkB Pre"  ID="Previous" CommandName="Previous" runat="server">&lt; Previous</asp:LinkButton>
                            </span>
	                        <span >
                                <asp:LinkButton class="linkB Next" ID="Next" CommandName="Next" runat="server">Next &gt;</asp:LinkButton>
                            </span>
                        </div>
                        <!-- 界面主体 投票栏尾部 E -->   
                    </FooterTemplate>   
                                                   
                </asp:Repeater>
			</div>
			<!-- 界面主体 投票栏 E -->



			<!-- 界面主体 内容栏 S -->
			
			<div id="Div2" class="columnMiddle">
				<div id="contentWrapper" class="contentWrapper">
                
                <asp:Repeater ID="Repeater_columnContent"  runat="server" 
                        onitemdatabound="Repeater_columnContent_ItemDataBound" 
                        onitemcommand="Repeater_columnContent_ItemCommand">
                    <ItemTemplate>
                        
					    <!-- 界面主体 内容栏 标题 S -->
					    <div class="contentTitle">
<a  href="action_Team_News.aspx?newsId=<%#((T_NEWS_AND_LOGS)Container.DataItem).Id %>" class="linkD TitleA"><%#((T_NEWS_AND_LOGS)Container.DataItem).POST_TITLE %></a>
					    </div>
					    <!-- 界面主体 内容栏 标题 E -->

					    <!-- 界面主体 内容栏 时间 S -->
					    <div class="date"><span><%#((T_NEWS_AND_LOGS)Container.DataItem).POST_DATETIME.ToString("MMM d, yyyy") %></span>
					    </div>
					    <!-- 界面主体 内容栏 时间 E -->

					    <!-- 界面主体 内容栏 主体 S -->
					    <div class="contentBody" id="addBorder">
<asp:PlaceHolder ID="PlaceHolder_Photos" runat="server"></asp:PlaceHolder>


						    <p >
                                <%# Helper.getSubString(((T_NEWS_AND_LOGS)Container.DataItem).POST_CONTENT, 200 )
                                 %>                    
	                        </p>
    						
					    </div>
                        <!-- 界面主体 内容栏 主体 E -->
                
                    </ItemTemplate>
                </asp:Repeater>
				</div>
			</div>
			<!-- 界面主体 内容栏 E -->
			



			<!-- 界面主体 留言栏 S -->
			<div id="Div3" class="columnRight">

            <asp:Repeater ID="Repeater_columnLeavewords" runat="server" 
                    onitemcommand="Repeater_columnLeavewords_ItemCommand">
                <HeaderTemplate>
				    <!-- 界面主体 留言栏 头部 S -->
				    <div id="leavewordsHead"><span class="columnTitle">LEAVE WORDS</span>
				    </div>
				    <!-- 界面主体 留言栏 头部 E -->
                </HeaderTemplate> 
 
                <ItemTemplate>
				<!-- 界面主体 留言栏 留言列表 S -->
				<div class="leavewordsContent">

				

						<div class="userInfo"><span class="userName"><%#((T_LEAVED_WORDS)Container.DataItem).USER_EMAIL %></span><span class="date"><%#((T_LEAVED_WORDS)Container.DataItem).POST_DATETIME.ToString("dd-MM-yyyy HH:mm") %></span></div>
<asp:LinkButton CommandName="gotoWords" CommandArgument=<%#((T_LEAVED_WORDS) Container.DataItem).NEWS_AND_LOGS_ID %> class="linkF" ID="LinkButton1" runat="server"><%#Helper.getSubString(((T_LEAVED_WORDS)Container.DataItem).WORDS_CONTENT, 100) %></asp:LinkButton>	
               
				</div>
				<!-- 界面主体 留言栏 留言列表 E -->
                </ItemTemplate>
            </asp:Repeater>

			</div>
			<!-- 界面主体 留言栏 E -->



		</div>
		<!-- 界面主体部分 E -->
		
		<!-- 界面尾部 S -->
		<div id="footer" class="footer">
		</div>
		<!-- 界面尾部 E -->


	</div>
</div>


<!--pop窗口实现 S-->
<div id="alpha" >
     <div class="popup fixed-top">
	        <h1>
		        <a class="closePopsup"></a>
	        </h1>
	        <div class="area_message">
	        <p>
		        <asp:Label ID="Message" runat="server" Text="Message"></asp:Label>
        		
	        </p>
	        </div>
	        <p class="forBtn">
<asp:LinkButton class="button1 linkE" ID="LinkButton2" runat="server" 
                    onclick="LinkButton2_Click">OK</asp:LinkButton>	      
	        </p>
        </div>
</div>
<asp:Label ID="popupCmd"  runat="server" Text=""></asp:Label>
 <!--pop窗口实现 E-->   
</form>
<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
</body>

</html>

